/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bankapplicationgui;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;

/**
 *
 * @author harshi
 */
public class BalanceFrame extends JFrame implements ActionListener {
    
    JPanel panelBalance;
    JLabel labelBalance;
    JButton buttonExit;
    JButton buttonOk;
    
    public BalanceFrame(){
        
        setTitle("Balance Enquiry"); 
       panelBalance=new JPanel(new FlowLayout());
        
        labelBalance=new JLabel("BALANCE");
        buttonExit=new JButton("Exit");
        buttonOk=new JButton("Ok");
       
        panelBalance.add(labelBalance);
        panelBalance.add(buttonOk);
        panelBalance.add(buttonExit);
        
        add(panelBalance);
        
         setSize(300,200);
         setVisible(true);
         setDefaultCloseOperation(EXIT_ON_CLOSE);
        
        
    }
    public void actionPerformed(ActionEvent ae){
        //
    }
    
}
